export default {
  tooltip: {
    trigger: 'axis',
  },
  textStyle: {
    color: '#ffffff',
    textBorderColor: 'none',
  },
  legend: {
    data: ['产量(公斤)', '产值万元'],
    top: 20,
    textStyle: {
      color: '#ffffff',
    },
  },
  grid: {
    bottom: '20',
  },
  xAxis: [
    {
      type: 'category',
      data: [],
      axisPointer: {
        type: 'shadow',
      },
      // splitLine: {
      //   show: false,
      // },
    },
  ],
  yAxis: [
    {
      type: 'value',
      name: '产量(公斤)',
      axisLabel: {
        show: false,
      },
      splitLine: {
        show: false,
      },
      axisLine: {
        show: false,
      },
    },
    {
      type: 'value',
      name: '产值万元',
      axisLabel: {
        show: false,
      },
      axisLine: {
        show: false,
      },
    },
  ],
  series: [
    {
      name: '产量(公斤)',
      type: 'bar',
      barWidth: 20,
      tooltip: {
        valueFormatter: function (value) {
          return value + ' 公斤';
        },
      },
      data: [],
      label: {
        show: true,
      },
      color: 'rgba(28, 119, 216, 1)',
    },
    {
      name: '产值万元',
      type: 'bar',
      barWidth: 25,
      tooltip: {
        valueFormatter: function (value) {
          return value + ' 万';
        },
      },
      data: [],
      label: {
        color: '#ffffff',
        show: true,
        position: 'top',
      },
      color: 'rgba(255, 178, 57, 1)',
    },
  ],
};
